package com.zk.consumer.controller;

import com.zk.consumer.server.ZkServer;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName
 * @Author mwq
 * @Date
 * @Description
 */
@RestController
public class ZkConsumerController {

    @Resource
    ZkServer zkServer;

    @RequestMapping("/zkConsumer")
    public String zkConsumer() {
        return zkServer.zkProducer();
    }
}
